package com.taotao.chain;

/**
 * @Author: wangjin
 * @CreateTime: 2022-06-25  23:18
 */
public abstract class  GatewayHandler {
    /**
     * 处理流程
     */
    public abstract void doServices() throws Exception;
    /**
     * 下一个nextGatewayHandler
     */
    public GatewayHandler nextGatewayHandler;

    /**
     * 获取当前handler的下一个
     */
   // public  abstract  void setNextGatewayHandler(GatewayHandler nextGatewayHandler);
    public void setNextGatewayHandler(GatewayHandler nextGatewayHandler)throws Exception {
        this.nextGatewayHandler=nextGatewayHandler;
    }
}
